


**** Stata code for replicating the results in “Austerity and Niche Parties: The Electoral Consequences of Fiscal Reform” 
**** Jana Grittersova, Indridi H. Indridason, Ricardo Crespo, and Christina Gregory. 2016. Electoral Studies 42: 276-289.

use "/Austerity & Niche Parties Replication Data.dta", clear

***********************************
*** TABLES 1-4: 
***********************************

*** Table 1
eststo clear
eststo total: areg nvote_s sh1total unempl change_gdp yearsoffice inflation baseyear d_gcrs, absorb(country_code)
eststo total2: areg nvote_s sh2total unempl change_gdp yearsoffice inflation baseyear d_gcrs, absorb(country_code)

eststo spend: areg nvote_s sh1spend sh1tax unempl change_gdp yearsoffice inflation baseyear d_gcrs, absorb(country_code)
eststo spend2: areg nvote_s sh2spend sh2tax unempl change_gdp yearsoffice inflation baseyear d_gcrs, absorb(country_code)


*** Table 2
eststo clear
eststo totala: areg nvote_s l_sh1total nl_sh1total leftin1yr unempl change_gdp yearsoffice inflation baseyear d_gcrs, absorb(country_code)
eststo totalb: areg nvote_s r_sh1total nr_sh1total rightin1yr unempl change_gdp yearsoffice inflation baseyear d_gcrs, absorb(country_code)


*** Table 3
eststo clear
eststo leftinca: areg nvote_s leftin1yr l_sh1spend nl_sh1spend l_sh1tax nl_sh1tax unempl change_gdp  yearsoffice inflation baseyear d_gcrs, absorb(country_code)
eststo rightinca: areg nvote_s rightin1yr r_sh1spend nr_sh1spend r_sh1tax nr_sh1tax unempl change_gdp  yearsoffice inflation baseyear d_gcrs, absorb(country_code)


*** Table 4
eststo clear	
eststo lefta:  areg lnvote_s l_sh1spend nl_sh1spend leftin1yr unempl change_gdp yearsoffice inflation baseyear d_gcrs, absorb(country_code)
eststo righta: areg rnvote_s r_sh1tax nr_sh1tax rightin1yr unempl change_gdp yearsoffice inflation baseyear d_gcrs, absorb(country_code)



***********************************
*** Appendix A: Tobit Models
***********************************

drop if cntry==.
xtset cntry year

*** Table 5
eststo clear
eststo total: xttobit nvote_s sh1total c.unempl change_gdp yearsoffice inflation baseyear d_gcrs 
eststo total2: xttobit nvote_s sh2total c.unempl change_gdp yearsoffice inflation baseyear d_gcrs 
eststo spend: xttobit nvote_s sh1spend sh1tax c.unempl change_gdp yearsoffice inflation baseyear d_gcrs 
eststo spend2: xttobit nvote_s sh2spend sh2tax c.unempl change_gdp yearsoffice inflation baseyear d_gcrs
	
*** Table 6
eststo clear
eststo totala: xttobit nvote_s l_sh1total nl_sh1total leftin1yr unempl change_gdp yearsoffice inflation baseyear d_gcrs
eststo totalb: xttobit nvote_s r_sh1total nr_sh1total leftin1yr unempl change_gdp yearsoffice inflation baseyear d_gcrs
	
*** Table 7
eststo clear
eststo leftinca: xttobit nvote_s leftin1yr l_sh1spend nl_sh1spend l_sh1tax nl_sh1tax unempl change_gdp  yearsoffice inflation baseyear d_gcrs
eststo rightinca: xttobit nvote_s rightin1yr r_sh1spend nr_sh1spend r_sh1tax nr_sh1tax unempl change_gdp  yearsoffice inflation baseyear d_gcrs

*** Table 8
eststo clear
eststo lefta: xttobit lnvote_s l_sh1spend nl_sh1spend leftin1yr unempl change_gdp yearsoffice inflation baseyear d_gcrs
eststo righta: xttobit rnvote_s r_sh1spend nr_sh1spend rightin1yr unempl change_gdp yearsoffice inflation baseyear d_gcrs



*********************************************************************************************************
*** Appendix B: Robustness checks for different classifications of parties as niche parties
*********************************************************************************************************

***TABLES 9-12: PARLGOV NICHE PARTIES + SPECIAL ISSUE + Agrarian
*** Table 9 
eststo clear
eststo total: areg nvote_sa sh1total unempl change_gdp yearsoffice inflation baseyear d_gcrsa, absorb(country_code)
eststo total2: areg nvote_sa sh2total unempl change_gdp yearsoffice inflation baseyear d_gcrsa, absorb(country_code)
eststo spend: areg nvote_sa sh1spend sh1tax unempl change_gdp yearsoffice inflation baseyear d_gcrsa, absorb(country_code)
eststo spend2: areg nvote_sa sh2spend sh2tax unempl change_gdp yearsoffice inflation baseyear d_gcrsa, absorb(country_code)

*** Table 10
eststo totala: areg nvote_sa l_sh1total nl_sh1total leftin1yr unempl change_gdp yearsoffice inflation baseyear d_gcrsa, absorb(country_code)
eststo totalb: areg nvote_sa r_sh1total nr_sh1total rightin1yr unempl change_gdp yearsoffice inflation baseyear d_gcrsa, absorb(country_code)

*** Table 11
eststo clear
eststo leftinca: areg nvote_sa leftin1yr l_sh1spend nl_sh1spend l_sh1tax nl_sh1tax unempl change_gdp  yearsoffice inflation baseyear d_gcrsa, absorb(country_code)
eststo rightinca: areg nvote_sa rightin1yr r_sh1spend nr_sh1spend r_sh1tax nr_sh1tax unempl change_gdp  yearsoffice inflation baseyear d_gcrsa, absorb(country_code)

*** Table 12
eststo clear
eststo lefta:  areg lnvote_sa l_sh1spend nl_sh1spend leftin1yr unempl change_gdp yearsoffice inflation baseyear d_gcrsa, absorb(country_code)
eststo righta: areg rnvote_sa r_sh1tax nr_sh1tax rightin1yr unempl change_gdp yearsoffice inflation baseyear d_gcrsa, absorb(country_code)



***TABLE 13-16: Niche party ~ Not mainstream party
*** Table 13
eststo clear
eststo lefta:  areg lnvote_sa l_sh1spend nl_sh1spend leftin1yr unempl change_gdp yearsoffice inflation baseyear d_gcrsa, absorb(country_code)
eststo righta: areg rnvote_sa r_sh1tax nr_sh1tax rightin1yr unempl change_gdp yearsoffice inflation baseyear d_gcrsa, absorb(country_code)

*** Table 14
eststo clear
eststo totala: areg nvote_m l_sh1total nl_sh1total leftin1yr unempl change_gdp yearsoffice inflation baseyear d_gcrsa, absorb(country_code)
eststo totalb: areg nvote_m r_sh1total nr_sh1total rightin1yr unempl change_gdp yearsoffice inflation baseyear d_gcrsa, absorb(country_code)

*** Table 15
eststo clear
eststo leftinca: areg nvote_m leftin1yr l_sh1spend nl_sh1spend l_sh1tax nl_sh1tax unempl change_gdp yearsoffice inflation baseyear d_gcrsa, absorb(country_code)
eststo rightinca: areg nvote_m rightin1yr r_sh1spend nr_sh1spend r_sh1tax nr_sh1tax unempl change_gdp yearsoffice inflation baseyear d_gcrsa, absorb(country_code)


*** Basic fixed effects models with interactions: Tax & Spend
eststo clear
eststo lefta:  areg lnvote_m l_sh1spend nl_sh1spend leftin1yr unempl change_gdp yearsoffice inflation baseyear d_gcrsa, absorb(country_code)
eststo righta: areg rnvote_m r_sh1tax nr_sh1tax rightin1yr unempl change_gdp yearsoffice inflation baseyear d_gcrsa, absorb(country_code)


***TABLES 9-12: Radical parties ~ Communist + Populist/radical right + Special Issue & Green parties (if extreme left-right ideology)
*** Table 17-20

*** Table 17
eststo clear
eststo total: areg nvote_s sh1total unempl change_gdp yearsoffice inflation baseyear d_gcrsa, absorb(country_code)
eststo total2: areg nvote_s sh2total unempl change_gdp yearsoffice inflation baseyear d_gcrsa, absorb(country_code)
eststo spend: areg nvote_s sh1spend sh1tax unempl change_gdp yearsoffice inflation baseyear d_gcrsa, absorb(country_code)
eststo spend2: areg nvote_s sh2spend sh2tax unempl change_gdp yearsoffice inflation baseyear d_gcrsa, absorb(country_code)

*** Table 18
eststo clear
eststo totala: areg nvote_r l_sh1total nl_sh1total leftin1yr unempl change_gdp yearsoffice inflation baseyear d_gcrsa, absorb(country_code)
eststo totalb: areg nvote_r r_sh1total nr_sh1total rightin1yr unempl change_gdp yearsoffice inflation baseyear d_gcrsa, absorb(country_code)

*** Table 19
eststo clear
eststo leftinca: areg nvote_r leftin1yr l_sh1spend nl_sh1spend l_sh1tax nl_sh1tax unempl change_gdp  yearsoffice inflation baseyear d_gcrsa, absorb(country_code)
eststo rightinca: areg nvote_r rightin1yr r_sh1spend nr_sh1spend r_sh1tax nr_sh1tax unempl change_gdp  yearsoffice inflation baseyear d_gcrsa, absorb(country_code)

*** Table 20
eststo clear
eststo lefta:  areg lnvote_r l_sh1spend nl_sh1spend leftin1yr unempl change_gdp yearsoffice inflation baseyear d_gcrsa, absorb(country_code)
eststo righta: areg rnvote_r r_sh1tax nr_sh1tax rightin1yr unempl change_gdp yearsoffice inflation baseyear d_gcrsa, absorb(country_code)

